package com.wen.vod;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * @Author：Win
 * @Date: 2021/6/11 14:46
 * @Description: Vod模块的启动类, 同上传图片服务一样，
 * 因为没有操作数据库，故需要将数据库相关排除，以免启动报错
 * 因为需要跨服务模块使用swagger等功能，需要配置ComponentScan扫描
 */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@ComponentScan(basePackages = {"com.wen"})
@EnableDiscoveryClient
public class VodApplication {
    public static void main(String[] args) {
        SpringApplication.run(VodApplication.class, args);
    }
}
